package com.ml.mall.bean.req.banner;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
@ApiModel(value = "添加banner信息Model")
public class SysBannerAddDto {
    @ApiModelProperty(value = "图片链接字符串")
    @NotBlank(message = "图片链接字符串不能为空")
    private String picUrl;

    @ApiModelProperty(value = "链接支持跳转到的地址，title：无")
    @NotBlank(message = "链接支持跳转的地址不能为空")
    private String linkUrl;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    private Integer indexNo;

    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "链接类型：0:title , 1:到商家 , 2:到目录 , 3:到产品")
    @NotNull(message = "连接类型不能为空")
    private Integer urlType;
}
